package com.why.cachecloud.service.custom.alert;

import com.why.cachecloud.entity.AppDesc;
import com.why.cachecloud.entity.WarnConfig;
import com.why.cachecloud.service.alert.WarnType;

import java.util.Collection;
import java.util.List;

/**
 * 钉钉报警
 * Created by why.developer
 */
public interface DingTalkComponent {

    /**
     * 发送钉钉报警
     */
    void sendDingTalk(String message, List<String> phoneList);

    /**
     * 发送钉钉报警给所有相关人员
     */
    void sendDingTalkToAll(String message, List<String> mobileList);

    /**
     * 发送钉钉报警给管理员
     */
    void sendDingTalkToAdmin(String message);

    void sendDingTalk(WarnConfig warnConfig, long appId, String msg);

    void sendDingTalk(WarnType type, Collection<AppDesc> appDescSet);

    void sendDingTalk(WarnConfig warnConfig, Collection<AppDesc> appDescs);
}
